package top.rainf.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.rainf.domain.vo.BanRecord;
import top.rainf.mapper.BanRecordMapper;
import top.rainf.service.IBanRecordService;

import java.util.List;

/**
 * @author 星环
 * @date 2023/5/20 12:44:24
 * @description
 */
@Service

public class BanRecordService implements IBanRecordService {
    @Autowired
    BanRecordMapper banRecordMapper;

    @Override
    public List<BanRecord> getUserBannedRecordIn(int blockId, int userId) {
         return banRecordMapper.selectByUserIdAndBlockIdActive(userId,blockId);
    }
}
